import App from './App'
import store from '@/store'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App,
	store  // 注入仓库实例 
})
app.$mount()
// #endif


// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif

import http from '@/utils/request.js'
import { showMessage } from '@/utils/message.js'
Vue.prototype.$http = http
Vue.prototype.$msg = showMessage
Vue.filter('formatNum', (value) => {
	return Number(value).toFixed(2)
})